package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysPrizeManagement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author HP
 * @Date 2021/2/24
 * @Description TODO
 */
@Mapper
public interface SysPrizeManagementMapper {
   /*
   查询所有礼品信息
    */

    public List<SysPrizeManagement> selectSysPrizeManagement(SysPrizeManagement sysPrizeManagement);

    /*
    添加礼品信息
     */

    public void saveSysPrizeManagement(SysPrizeManagement sysPrizeManagement);

    /*
    删除礼品信息
     */

    public void deleteSysPrizeManagement(int pid);

    /*
    根据id查询
     */

    public SysPrizeManagement selectById(int pid);

    /*
    修改礼品信息
     */

    public void updateSysPrizeManagement(SysPrizeManagement sysPrizeManagement);

    /*
    修改礼品数量
     */

    public void updateByCounts(SysPrizeManagement sysPrizeManagement);

    /*
    删除奖品数量 添加对应的礼品数量
     */

    public void saveByCounts(SysPrizeManagement sysPrizeManagement);

    /*
    修改奖品数量 添加对应的礼品数量
     */

    public void saveByCounts1(SysPrizeManagement sysPrizeManagement);

    /*
    用户兑换礼品,更新礼品数量
     */
    public void updateByCounts1(SysPrizeManagement sysPrizeManagement);
}
